home *** CD-ROM | disk | FTP | other *** search
- #ifdef UNICODE
- #define UCF(x) x ## W
- #else
- #define UCF(x) x ## A
- #endif
- #define STRINGOF(x) #x
- #define STRINGOF2(x) STRINGOF(x)
- #define UCS(x) STRINGOF2(UCF(x))
-
- extern "C" {
- // Authenticate a user
- // series - Input: The number of this connection [0-9999]
- // szUser - Input: the user name given by the FTP client
- // szPass - Input: the password given by the FTP client
- // hNTUser - Output: handle to an NT user to impersonate
- // for all this FTP user's actions.
- // szHomeDir - Output: the home directory for this user.
- // (up to _MAX_PATH characters)
- typedef BOOL (CALLBACK *WFTPD_AUTHENTICATE)(int series, LPCTSTR szUser,
- LPCTSTR szPass, HANDLE *hNTUser, LPTSTR szHomeDir);
- // The function should be exported as "WFTPDAuthenticateA"
- };
-